<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="jquery-3.7.0.js"></script>
</head>
<body>
<input id="num" type="text"/>
<input type="button" id="tj" value="提交">
<span id="tip"></span>
<script>
    $("#tj").click(function (){
        $.ajax({
            url: "num1",
            dataType: "text",
            data: {
                num: $("#num").val()
            },
            success: function (data){
                $("#tip").text(data + "已提交")
            }
        })
    })
</script>
</body>
</html>